package com.learn.jdk8.lambda06;

import java.util.function.Consumer;

public class Test {

    private static void consummer(String something , Consumer<String> consumer){
        consumer.accept(something);
    }

    private static void doubleConsummer(String something , Consumer<String> consumer, Consumer<String> consumer1){
        consumer.andThen(consumer1).accept(something);
    }

    public Test() {
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    public static void main(String[] args) {
        consummer("加油",something->{
            System.out.println(something+"汤一碗");
        });

        doubleConsummer("加油6",something-> System.out.println(something+"汤一碗"),something-> System.out.println(something+"6得飞起"));


    }


}
